@extends('admin.layouts.main')
@section('header')
    @parent
@endsection
@section('content')
    <form class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">联赛</label>
                <div class="layui-input-inline">
                    <input type="search" class="layui-input" name="name" placeholder="联赛" lay-verify="required" autocomplete="off">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <input type="radio" name="status" value="1" checked title="正常">
                    <input type="radio" name="status" value="0"  title="禁用">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submit">立即提交</button>
            </div>
        </div>
    </form>
@endsection
@section('footer')
    @parent
    <script type="text/javascript">
       layui.use(['layer','jquery','form'],function () {
           var layer = layui.layer,
               $ = layui.jquery,
               form = layui.form;
           form.on("submit(submit)",function (data) {
               var formData = data.field;
                goConfirm('{{ url('admin/lottery/league/add') }}',formData,'确认提交数据',1);
               return false;
           });
       });
    </script>
@endsection